<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>VectorLayer.setArrowHead2</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="VectorLayer.htm">VectorLayer</a>.<wbr>setArrowHead2</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setArrowHead2(int[] polygon)
</div>
<p class="heading2">Description</p>
<div class="content">
Sets a custom shape to be used as the arrow head.<br><br>
The custom shape is specified as an array of integers x0, y0, x1, y1, x2, y2 ... representing the coordinates of the vertices of the custom polygonal shape.<br><br>
The polygon should be defined with a bounding square of 10 x 10 units, in which the x-axis is from left to right, and the y-axis from bottom to top. The origin is assumed to be the bottom center of the arrow (the point where the arrow head joins the arrow stem). The shape is assumed to represent an arrow pointing upwards.<br><br>
As an example, the followings are the integer array that represents the standard ChartDirector vector arrow head:<br><br>
<div class="indentedblock"><code>-5, -5, 0, 0, 5, -5, 0, 5</code></div><br>
ChartDirector will automatically scale the shape to the actual width and height as specified in <a href="VectorLayer.setArrowHead.htm">VectorLayer.setArrowHead</a>.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>polygon</td><td>(Mandatory)</td><td>An array of integers x0, y0, x1, y1, x2, y2 ... representing the coordinates the polygon vertices on a 10 x 10 units grid.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
